package net.ericaro.neojavagen.classes ;
import net.ericaro.neojavagen.classes.FormalParameters;
import net.ericaro.neojavagen.classes.TypeParameters;
import net.ericaro.neojavagen.classes.SimpleTypeName ;

/**
* *<pre> ConstructorDeclarator :
    TypeParameters? SimpleTypeName  (  FormalParameters?  )
</pre>
*/
public class ConstructorDeclarator   {

TypeParameters typeparameters;
SimpleTypeName simpletypename;
FormalParameters formalparameters ;

public ConstructorDeclarator( TypeParameters typeparameters, SimpleTypeName simpletypename, FormalParameters formalparameters ){
	this.typeparameters = typeparameters; this.simpletypename = simpletypename; this.formalparameters = formalparameters ;
	}public ConstructorDeclarator( SimpleTypeName simpletypename ){
this.simpletypename = simpletypename ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	if (this.typeparameters !=null ) stringbuilder.append( this.typeparameters ).append(" ");
stringbuilder.append( this.simpletypename ).append(" ");
stringbuilder.append( "" ).append(" ");
stringbuilder.append( "(" ).append(" ");
stringbuilder.append( "" ).append(" ");
if (this.formalparameters !=null ) stringbuilder.append( this.formalparameters ).append(" ");
stringbuilder.append( "" ).append(" ");
stringbuilder.append( ")" ).append(" ") ;
	return stringbuilder.toString();
}

}
